package com.qumitech.visualnovel.model.dao.editor;

import java.util.Date;

public class BookDAO {
    private Long id;

    private Integer uid;

    private String title;

    private String cover;

    private String coverWithWords;

    private String comments;

    private String labels;

    private Byte delete;

    private String scVersion;

    private String editState;

    private String publishState;

    private String reviewState;

    private String category;

    private Date firshPublishAt;

    private String publishUpdateAt;

    private String discountRate;

    private Date discountStartAt;

    private Date discountEndAt;

    private Date createdAt;

    private Date updatedAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover == null ? null : cover.trim();
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments == null ? null : comments.trim();
    }

    public String getLabels() {
        return labels;
    }

    public void setLabels(String labels) {
        this.labels = labels == null ? null : labels.trim();
    }

    public Byte getDelete() {
        return delete;
    }

    public void setDelete(Byte delete) {
        this.delete = delete;
    }

    public String getScVersion() {
        return scVersion;
    }

    public void setScVersion(String scVersion) {
        this.scVersion = scVersion == null ? null : scVersion.trim();
    }

    public String getEditState() {
        return editState;
    }

    public void setEditState(String editState) {
        this.editState = editState == null ? null : editState.trim();
    }

    public String getPublishState() {
        return publishState;
    }

    public void setPublishState(String publishState) {
        this.publishState = publishState == null ? null : publishState.trim();
    }

    public String getReviewState() {
        return reviewState;
    }

    public void setReviewState(String reviewState) {
        this.reviewState = reviewState == null ? null : reviewState.trim();
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category == null ? null : category.trim();
    }

    public Date getFirshPublishAt() {
        return firshPublishAt;
    }

    public void setFirshPublishAt(Date firshPublishAt) {
        this.firshPublishAt = firshPublishAt;
    }

    public String getPublishUpdateAt() {
        return publishUpdateAt;
    }

    public void setPublishUpdateAt(String publishUpdateAt) {
        this.publishUpdateAt = publishUpdateAt == null ? null : publishUpdateAt.trim();
    }

    public String getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(String discountRate) {
        this.discountRate = discountRate == null ? null : discountRate.trim();
    }

    public Date getDiscountStartAt() {
        return discountStartAt;
    }

    public void setDiscountStartAt(Date discountStartAt) {
        this.discountStartAt = discountStartAt;
    }

    public Date getDiscountEndAt() {
        return discountEndAt;
    }

    public void setDiscountEndAt(Date discountEndAt) {
        this.discountEndAt = discountEndAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getCoverWithWords() {
        return coverWithWords;
    }

    public void setCoverWithWords(String coverWithWords) {
        this.coverWithWords = coverWithWords;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", uid=").append(uid);
        sb.append(", title=").append(title);
        sb.append(", cover=").append(cover);
        sb.append(", comments=").append(comments);
        sb.append(", labels=").append(labels);
        sb.append(", delete=").append(delete);
        sb.append(", scVersion=").append(scVersion);
        sb.append(", editState=").append(editState);
        sb.append(", publishState=").append(publishState);
        sb.append(", reviewState=").append(reviewState);
        sb.append(", category=").append(category);
        sb.append(", firshPublishAt=").append(firshPublishAt);
        sb.append(", publishUpdateAt=").append(publishUpdateAt);
        sb.append(", discountRate=").append(discountRate);
        sb.append(", discountStartAt=").append(discountStartAt);
        sb.append(", discountEndAt=").append(discountEndAt);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append("]");
        return sb.toString();
    }
}